Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 3 - Geometric Styles / About Geometric Styles


Default Style Objects

When you call the GXNewStyle function, which is described in the chapter "Style Objects" in Inside Macintosh: QuickDraw GX Objects, QuickDraw GX creates and returns a new style object. All of the new style object's properties are set to standard initial values. Once you have created a new style object, you can change the values of its properties, but you cannot change the behavior of the GXNewStyle function itself; it always returns a style object with these values for the geometric style properties:

The chapter "Typographic Styles" in Inside Macintosh: QuickDraw GX Typography discusses the default style values for the typographic style properties.

Although you cannot change the behavior of the GXNewStyle function, QuickDraw GX provides another method for creating new style objects--a method that you can modify. When you create a new shape with the GXNewShape function, QuickDraw GX returns a copy of the default shape of the requested type. Since you can change the default shapes, you can also change the style objects that they reference.

Initially, all of the default shape objects reference the same style object. Whenever you create a new shape, it, too, references this style object. There are two ways in which you can change the style object associated with a new shape:

By calling functions such as GXSetShapePen on each of the default shapes, you can create a different style object for each default shape. See the chapter "Shape Objects" in Inside Macintosh: QuickDraw GX Objects for more information about default shapes.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996